package com.bling.common.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 数据字典
 * @author BLingSoft
 *
 */
@Entity
@Table(name="T_DATASET")
public class Dataset implements Serializable {

	private static final long serialVersionUID = 9003613798228038419L;

	private Integer id; //主键
	private String dkey; //关键字
	private String dvalue; //值
	private Integer sort; //排序
	private String extendone; //扩展值
	private String extendtwo; //扩展值
	private String extendthree; //扩展值
	
	public Dataset() {
		super();
	}
	public Dataset(String dkey, String dvalue, Integer sort, String extendone,
			String extendtwo, String extendthree) {
		super();
		this.dkey = dkey;
		this.dvalue = dvalue;
		this.sort = sort;
		this.extendone = extendone;
		this.extendtwo = extendtwo;
		this.extendthree = extendthree;
	}
	
	@Id
	@GeneratedValue
	@Column
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	@Column(length=100)
	public String getDkey() {
		return dkey;
	}
	public void setDkey(String dkey) {
		this.dkey = dkey;
	}
	
	@Column(length=100)
	public String getDvalue() {
		return dvalue;
	}
	public void setDvalue(String dvalue) {
		this.dvalue = dvalue;
	}
	
	@Column
	public Integer getSort() {
		return sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
	@Column(length=100)
	public String getExtendone() {
		return extendone;
	}
	public void setExtendone(String extendone) {
		this.extendone = extendone;
	}
	
	@Column(length=100)
	public String getExtendtwo() {
		return extendtwo;
	}
	public void setExtendtwo(String extendtwo) {
		this.extendtwo = extendtwo;
	}
	
	@Column(length=100)
	public String getExtendthree() {
		return extendthree;
	}
	public void setExtendthree(String extendthree) {
		this.extendthree = extendthree;
	}
}
